package com.fzy.core.system.action;

import com.fzy.core.entity.Page;
import com.fzy.core.system.service.DbService;
import com.fzy.core.system.service.EntityQuery;
import com.fzy.core.webwork.BaseAction;
import com.opensymphony.xwork.Preparable;

public class EntityListAction extends BaseAction implements Preparable {
	private static final long serialVersionUID = 6303297947418111341L;
	Page page;
	EntityQuery entityQuery;
	DbService dbService;
	public void prepare() throws Exception {
		entityQuery = new EntityQuery();
		page = new Page();
	}
	public String execute() throws Exception {
//		page = dbService.listEntity(entityQuery, page);
		return "dispatcher:/WEB-INF/jsp/core/system/entity-list.jsp";
    }
	public Page getPage() {
		return page;
	}
	public EntityQuery getEntityQuery() {
		return entityQuery;
	}
	public void setDbService(DbService dbService) {
		this.dbService = dbService;
	}
	
}
